
<link rel="stylesheet" type="text/css" href="/public/store/font-awesome.min.css">
<link rel="stylesheet" type="text/css" href="/public/store/daterangepicker-bs3.css">
<ol class="breadcrumb">
    <li><a href="/store">KTV管理</a></li>
    <li class="active"><a href="/store/goodsTJ">售出统计</a></li>
</ol>
<!-- seat end -->
<div class="row">
    <div class="container-fluid">
        
    </div>
    <!-- rightcont end -->
</div>

<script type="text/html" id="list_tmpl">
    <div class="memberbox grid">
        <div class="shai">筛选条件：</div>
        <div class="g-col form-inline">
            <input type="text" name="startTime" class="form-control datetime" size="21" placeholder="2016-06-16" value="{{startTime}}" />
            至
            <input type="text" name="endTime" class="form-control datetime" size="21" placeholder="2016-06-16" value="{{endTime}}" />
            <span class="blue daterang hand" data-day="6">最近7天</span>
            <span class="blue daterang hand" data-day="29">最近30天</span>
            <div class="grid middle" style="padding-top:16px;">
                <div style="padding-right:1em;width:360px">
                        <div class="shop-list">
                            <div class="shop-mask" style="background:none;position:fixed;top:0;left:0;width:100%;height:100%;"></div>
                            <div style="position:relative;width:100%;">
                                <ul class="list-group" style="position:absolute;top:34px;left:0;width:100%;max-height:360px;overflow-x:hidden;overflow-y:auto;">
                                    
                                </ul>
                            </div>
                        </div>
                        <input type="text" class="search-shop form-control" value="" placeholder="全部商品" style="width:100%" />
                </div>
                <div class="g-col">
                    <button class="btn gn_btn btn_sm search">筛选</button>
                    <button class="btn gn_btn btn_sm black_btn print">打印</button>
                </div>
            </div>
        </div>
    </div>
    <table class="table table-bordered from_table">
        <tr>
            <th class="text-center">商品名称</th>
            <th class="text-center">售出数量</th>
            <th class="text-center">交易时间</th>
        </tr>
        {{each tj as li i}}
        <tr>
            <td>{{li.goodsName}}</td>
            <td class="text-center">{{if li.units!="斤"}}{{li.count}}{{else}}{{(li.count/500).toFixed(2)}}{{/if}}{{" "+li.units}}</td>
            <td class="text-center">{{li.time}}</td>
        </tr>
        {{/each}}
    </table>
    {{if totalPage>1}}
    <nav class="text-right">
        <ul class="pagination">
            {{if pageNumber>1}}
            <li>
                <a href="{{pageNumber-1}}" aria-label="Previous">
                    <span aria-hidden="true">上一页</span>
                </a>
            </li>
            {{/if}}
            {{for var i = pageNumber-5; i < pageNumber + 5; i++}}
            {{if i>0 && i <= totalPage}}
            <li{{if i == pageNumber}} class="active"{{/if}}><a href="{{i}}">{{i}}</a></li>
            {{/if}}
            {{/for}}
            {{if pageNumber<totalPage}}
            <li>
                <a href="{{pageNumber+1}}" aria-label="Next">
                    <span aria-hidden="true">下一页</span>
                </a>
            </li>
            {{/if}}
        </ul>
    </nav>
    {{/if}}
</script>

<script type="text/html" id="shop-list-tpml">
    <a href="#" class="list-group-item">全部商品</a> 
    {{each goodsList as vo i}}
    {{if !seachShop || vo.goodsName.indexOf(seachShop)>=0}}
    <a href="#" class="list-group-item{{if vo.goodsName==goodsName}} active{{/if}}" data-id="{{vo.goodsName}}">{{vo.goodsName}}</a>
    {{/if}}
    {{/each}}
</script>

<script type="text/html" id="checkPassword">
    <input class="form-control">
</script>

    <!--引入插件js代码-->
<script src="/public/store/moment.js"></script>

<script src="/public/store/daterangepicker.js"></script>

